POV-Ray : Newsgroups : povray.unofficial.patches : new sor spline type : Re: new sor spline type Server Time
17 May 2024 04:30:11 EDT (-0400)
  Re: new sor spline type  
From: ABX
Date: 2 Sep 2002 07:55:20
Message: <j0k6nugmam32jifao92k9vulsguvcqkibq@4ax.com>
On 9 Aug 2002 15:09:09 -0400, ingo <ing### [at] homenl> wrote:
> It would be nice if a spline could also be accessed in the same 
> way as an array.

I have finished small change to enable such feature in:

  #declare S=spline{
    -1.000000,0.000000*x
     0.000000,0.118143*x
     0.540084,0.620253*x
     0.827004,0.210970*x
     0.962025,0.194093*x
     1.000000,0.286920*x
     1.033755,0.468354*x
  };
  #local C=0;
  #while (C<dimension_size(S))
    #debug concat(str(S[C][0],0,-1),",<",vstr(3,S[C][1],",",0,-1),">\n")
    #local C=C+1;
  #end

Is this enough for you ? Should I add something or can create section in my
patch directory?

ABX


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.